package com.example.composestudy.widget.button

import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.material.Button
import androidx.compose.material.Divider
import androidx.compose.material.Icon
import androidx.compose.material.IconButton
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.Favorite
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp

@Preview(showBackground = true)
@Composable
fun ButtonDemo() {
    Column(
        modifier = Modifier
            .fillMaxSize()
            .padding(16.dp)
    ) {
        Button(onClick = { /*TODO*/ }) {
            Icon(Icons.Default.Favorite, contentDescription = "Favorite")
        }
        Divider(modifier = Modifier.padding(vertical = 4.dp), thickness = 1.dp)
        IconButton(onClick = { /*TODO*/ }) {
            Icon(Icons.Default.Favorite, contentDescription = "Favorite")
        }
    }
}